package com.vallis.lottery.domain;

import com.vallis.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.vallis.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 票库对象 lottery_ticket
 *
 * @author vallis
 * @date 2022-05-24
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LotteryTicket extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 前区号码 */
    @Excel(name = "前区号码")
    private String frontNum;
    /** 后区号码 */
    @Excel(name = "后区号码")
    private String endNum;
    /** 期数 */
    @Excel(name = "期数")
    private String orderNum;
    /** 票钱 */
    @Excel(name = "票钱")
    private Long ticketPrice;
    /** 中奖金额 */
    @Excel(name = "中奖金额")
    private Long awardPrice;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("frontNum", getFrontNum())
            .append("endNum", getEndNum())
            .append("orderNum", getOrderNum())
            .append("ticketPrice", getTicketPrice())
            .append("awardPrice", getAwardPrice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
        .toString();
    }
}
